package com.multiplayer.entity;

import java.util.List;

/**
 * 管理员实体类对应admin表
 * @author zhangwenhao 0.0.1
 *@author liutiehui 0.0.2 2020-5-8 23:10
 */
public class Admin {
	//管理员编号
	private String Ano;
    //教工号 
	private String Empno;
	//管理员密码
	private String Apassword;
	//公告列表
	private List<Announcement> announcements; 
	//用户
	private Emp emp;
	//自习室列表
	private List<StudyRoom> studyrooms;
	
	public Admin() {
		super();
	}

	public Admin(String ano, String empno, String apassword) {
		super();
		Ano = ano;
		Empno = empno;
		Apassword = apassword;
	}

	public String getAno() {
		return Ano;
	}

	public void setAno(String ano) {
		Ano = ano;
	}

	public String getEmpno() {
		return Empno;
	}

	public void setEmpno(String empno) {
		Empno = empno;
	}

	public String getApassword() {
		return Apassword;
	}

	public void setApassword(String apassword) {
		Apassword = apassword;
	}
	
	

	public List<Announcement> getAnnouncements() {
		return announcements;
	}

	public void setAnnouncements(List<Announcement> announcements) {
		this.announcements = announcements;
	}

	public Emp getEmp() {
		return emp;
	}

	public void setEmp(Emp emp) {
		this.emp = emp;
	}
	
	
	public List<StudyRoom> getStudyrooms() {
		return studyrooms;
	}

	public void setStudyrooms(List<StudyRoom> studyrooms) {
		this.studyrooms = studyrooms;
	}

	@Override
	public String toString() {
		return "Admin [Ano=" + Ano + ", Empno=" + Empno + ", Apassword=" + Apassword + "]";
	}
	
	
}
